package com.googlecode.bushel.obr.xml;


public class Requirement {

    private final String name;

    private boolean optional;

    private final RequirementFilter filter;

    private boolean multiple = false;

    private boolean extend = false;

    public Requirement(String name, RequirementFilter filter) {
        this.name = name;
        this.filter = filter;
    }

    public String getName() {
        return name;
    }

    public RequirementFilter getFilter() {
        return filter;
    }

    public void setOptional(boolean optional) {
        this.optional = optional;
    }

    public boolean isOptional() {
        return optional;
    }

    public void setExtend(boolean extend) {
        this.extend = extend;
    }

    public boolean isExtend() {
        return extend;
    }

    public void setMultiple(boolean multiple) {
        this.multiple = multiple;
    }

    public boolean isMultiple() {
        return multiple;
    }

}
